<script setup lang="ts">
	import { _getRandomVideo } from '@/api/video'
	import { onMounted } from 'vue'
	import { useRouter } from 'vue-router'

	const router = useRouter()
	onMounted(() => {
		_getRandomVideo(null).then((data) => {
			router.push(`/video/${data}`)
		})
	})
</script>
